package cn.icanci.loopstack.plugin.dalgen.process;

import java.util.function.Consumer;

/**
 * @author icanci
 * @since 1.0 Created in 2022/05/14 11:27
 */
public enum MojoGoalGeneratorProcessor {
    /**
     * CRUD
     */
    CRUD(MojoGoalConstants.CRUD, GeneratorProcessor::crud);

    MojoGoalGeneratorProcessor(String goal, Consumer<GeneratorProcessor> consumer) {
        this.goal = goal;
        this.consumer = consumer;
    }

    /**
     * 目标
     */
    public final String goal;

    /**
     * 消费者
     */
    public final Consumer<GeneratorProcessor> consumer;
}
